export default interface attackData {
    // 攻击数据类型
    attackId: number,//攻击id
    defenseId: number, //防御id
    attackType: number, //攻击类型
}
//攻击的类型
export enum attackType  {
    "pugong" = 1,
    "shejian" = 2,
    "huojian" = 3,
}
export interface PlayerData {
    x: number,
    y: number,
    id: string,
    hp: number,
    attack: number,
    defined: number,
    range: number,
}

export interface GameData {
    syncType: SyncType,
    timer: any,
    players: PlayerData[],
}

export enum SyncType {
    msg = "房间内发消息",
    state = "实时服务器状态同步",
    frame = "帧同步",
}
